Python安装pyqt5 |
您所在的位置:网站首页 › pip install pyqt5-tools › Python安装pyqt5 |
1.python的版本是3.10.2 2.背景是:想用python+pyqt5来学习python 的GUI编程的, 3.在安装pyqt5-tools时报错如下: C:\Users\bj65d5>pip install pyqt5-toolsCollecting pyqt5-toolsUsing cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)Collecting pyqt5==5.15.4Using cached PyQt5-5.15.4.tar.gz (3.3 MB)Installing build dependencies … doneGetting requirements to build wheel … donePreparing metadata (pyproject.toml) … errorerror: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1╰─> [29 lines of output]Traceback (most recent call last):File “C:\Python310\lib\site-packages\pip_vendor\pep517\in_process_in_process.py”, line 156, in prepare_metadata_for_build_wheelhook = backend.prepare_metadata_for_build_wheelAttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’ During handling of the above exception, another exception occurred: Traceback (most recent call last):File “C:\Python310\lib\site-packages\pip_vendor\pep517\in_process_in_process.py”, line 363, in note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. 4.遇到问题后从网上搜索解决办法 大都是说需要先安装wheel pip install wheel 但是操作后没有能解决问题 4.1.后来看到一个是说可能是版本兼容的问题 因为3.10.2是目前最高的版本,所以尝试安装3.7.6。 5.最后的解决方法 安装python3.7.6后问题解决,在这里做个记录 Original: https://blog.csdn.net/glenwan/article/details/123000758Author: 别再跑偏了Title: Python安装pyqt5-tools失败 原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/225051/ 转载文章受原作者版权保护。转载请注明原作者出处! |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |